/*****************************************************************************
 *
 * Copyright (c), 2004-2020,ShangHai Neotune Information Technology Co., Ltd.
 *
 * Module Name : snmpmd5.h
 *
 * Author :    sean
 *
 * Date :    2004-02-05
 *
 * Version :    1.00
 *
 * Description :    
 *
 * Other :    
 *
 * Data Structure List: <Main Data Structure>
 *
 * Modification History
 * ---------------------------------------------------------------------------
 *  1: Data :      2004-02-05
 *    Author :     sean
 *    Version :    V100R001M00
 *    Modification : creation
 *
*****************************************************************************/

#ifndef __MD5_INCLUDE__

#ifdef __cplusplus
extern"C" {
#endif

/* get the Epilogue types */
#ifndef EPILOGUE_TYPES_H
#include <snmptypes.h>
#endif  /* EPILOGUE_TYPES_H */

/* Data structure for MD5 (Message-Digest) computation */
typedef struct 
{
    bits32_t i[2];          /* number of _bits_ handled mod 2^64 */
    bits32_t buf[4];        /* scratch buffer */
    bits8_t in[64];         /* input buffer */
    bits8_t digest[16];     /* actual digest after MD5Final call */
} MD5_CTX;

void MD5Init __((MD5_CTX *));
void MD5Update __((MD5_CTX *, bits8_t *, bits32_t));
void MD5Final __((MD5_CTX *));

#ifdef __cplusplus
}
#endif

#define __MD5_INCLUDE__
#endif /* __MD5_INCLUDE__ */
